import Mock from 'mockjs'

const BASE_URL = '/RCIM/config'

export default [
    {
        url: `${BASE_URL}/tree`,
        type: 'get',
        response: config => {
            const querys = config.query;
            let result = [];
            if(querys.type === 'org'){
                result = treeOrgNode
            }else if(querys.type === 'area'){
                result = treeAreaNode
            }
            return {
                code: 200,
                data: result,
            }
        }
    },
]
